﻿@model _1._8._2015_KidChores.Models.ChoresViewModel
@{
    ViewBag.Title = "Chores";
}

<h2>Chores</h2>
<div class="row">
    <div class="col-md-12">
        <table class="table table-striped table-bordered">
            <tr>
                <th>Chore</th>
                <th></th>                
            </tr>
            @foreach (var c in Model.Chores)
            {
                <tr>
                    <td>@(c.Description)</td>
                    <td>@(Html.ActionLink("Edit Chore", "UpdateChore", new { id = @c.ChoreId }))</td>                 
                </tr>
            }
            
        </table>

    </div>

</div>
<div class="row">
    <div class="col-md-4"></div>
    <div class="col-md-4">
        <button class="btn btn-primary right" onclick="location.href='@Url.Action("CreateChore", "Home")';return false;">Create Chore</button>
    </div>
    <div class="col-md-4"></div>
</div>